//引入Mock
import Mock from "mockjs";
//引入banner数据
import banner from "./banner.json";
//引入floor数据
import floor from "./floor.json"
//引入address数据
import address from "./address.json"


//书写mock接口和响应拦截ajax请求 请求banner数据
Mock.mock("/mock-api/banner" , "get" , () => {
    return{
        code: 200,
        data:banner,
        message: "okkk"
    }
})

//书写mock接口和响应拦截ajax请求 请求floor数据
Mock.mock("/mock-api/floor" , "get" , () => {
    return{
        code: 200,
        data: floor,
        message: "okkk"
    }
})

//书写mock接口和响应拦截ajax请求 请求address数据
Mock.mock("/mock-api/address" , "get" , () => {
    return{
        code: 200,
        data: address,
        message: "okkk"
    }
})

